package com.macro.mall.service;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.common.domain.DrpDnBox;
import com.macro.mall.mapper.admin.DrpDnBoxMapper;
import com.macro.mall.query.DrpDnBoxQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrpDnBoxService {

    @Autowired
    private DrpDnBoxMapper dnBoxMapper;

    /***
     * 获取下拉框
     * @param query
     *          keys_type keys类型
     *          catg_type 采集分类
     * @return
     */
    public CommonResult getDrpDnBox(DrpDnBoxQuery query) {
        List<DrpDnBox> dnBoxList = dnBoxMapper.selectDrpDnBox(query);
        return CommonResult.success(dnBoxList);
    }
}
